/**
 * 酒店相关接口
 **/
import options from './request.js';


export const hotelOrdercCheckIn = (data = {}) => { //入住酒店
	return options.reqForm("PUT", '/hotel/order/checkIn', data)
}

export const goodsWeChatList = (data = {}) => { //获取酒店列表
	return options.reqJson("POST",  `/goods/weChat/list`,{
		goodsBelong: "酒店",
		pageNum: 1,
		pageSize: 99999,
		...data
	});
};


export const hotelReadingList = (data = {}) => {
	return options.reqForm("GET", '/hotel/reading/list', {
		pageNum: 1,
		pageSize: 999,
		status: 1
	})
}

export const meetingVenueList = (data = {}) => {
	return options.reqForm("GET", '/meeting/venue/list', {
		pageNum: 1,
		pageSize: 9999,
		type: 1
	})
}

//酒店预订
export const hotelOrderAddHotelOrder = (data = {}) => {
	return options.reqJson("POST", '/hotel/order/addHotelOrder', data);
}
//酒店列表详情
export const goodsDetails = (data) => {
	return options.reqJson("GET", `/order/goods/getOrderGoodsByOrderId`,data);
}

// 旅客信息 添加
export const guestAdd = (data = {}) => {
	return options.reqJson("POST", `/hotel/guest/insertHotelGuest`,data);
}
// 旅客信息 删除
export const guestDel = (data = {}) => {
	return options.reqJson("DELETE", `/hotel/guest/${data}`,{});
}
// 旅客信息 列表
export const guestList = (data = {}) => {
	return options.reqJson("GET", `/hotel/guest/list`,{
		pageNum:1,
		pageSize:9999
	});
}
// 旅客信息 修改
export const guestEdit = (data = {}) => {
	return options.reqJson("POST", `/hotel/guest/updateHotelGuest`,data);
}
